Creating null and script links

The most familiar kinds of links are those to documents and named anchors (described in Linking to a document and Linking to a named anchor, respectively), but there are other types of links as well.

A null link Is an undesignated link. Use null links to activate objects or text on a page. Once the text or object is active, you can attach a behavior to it to swap an image or to display a layer when the pointer is moved over the link. For information about attaching behaviors to objects, see Attaching a behavior.

Script links Execute JavaScript code or call a JavaScript function and are useful for giving visitors additional information about an item without leaving the current Web page. Script links can also be used to perform calculations, form validations, and other processing tasks when a visitor clicks a specific item.

To create a null link:

1 Select text, an image, or an object in the Document window.
2 In the Property inspector, type a number sign (#) in the Link field.

To create a script link:

1 Select text, an image, or an object in the Document window.
2 In the Link field of the Property inspector, type javascript: followed by some JavaScript code or a function call.
For example, typing javascript:alert('This feature is not implemented') in the Link field produces a link that displays a JavaScript alert box with the message This feature is not implemented.
Note: Because the JavaScript code appears between double quotation marks (as the value of the HREF attribute), you must use single quotation marks in the script code or "escape" any double quotation marks by preceding the double quotes with a backslash (for example, \"This feature is not implemented\").